//package com.wangyadong.hobby.schedule.jobtask.junit;
//
///**
// * <p>
// *
// * @author <714037465@qq.com>
// * @since 2018/8/217:35
// **/
//
//import com.wangyadong.hobby.JobTaskApplication;
//import com.wangyadong.hobby.utils.ConfigurableApplitionUtil;
//import com.wangyadong.hobby.utils.SqlSessionCache;
//import org.apache.ibatis.session.SqlSessionFactory;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.junit4.SpringRunner;
//
//import java.util.concurrent.TimeUnit;
//
//@RunWith(SpringRunner.class)
//@SpringBootTest(classes = JobTaskApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
//public class MybatisDao {
//
//
//    @Test
//    public void aaaa() {
//        try {
//            SqlSessionCache sqlSessionCache = new SqlSessionCache();
//            SqlSessionFactory sqlSessionFactory = ConfigurableApplitionUtil.getSqlSessionFactory();
//            sqlSessionCache.refreshMapper(sqlSessionFactory);
//            TimeUnit.DAYS.sleep(1);
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//    }
//}
